<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">

</head>
<body>
<!-- 导航 -->
<nav th:replace="_fragments::menu(2)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">JTBlog</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i> 首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i> 分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i> 标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i> 归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i> 关于我</a>
            <!-- 搜索框 -->
            <div class="right m-item item m-mobile-hide">
                <div class="ui icon input inverted transparent">
                    <input type="text" placeholder="Search...">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui black icon button m-right-top m-mobile-show menu toggle">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!-- 中间内容 -->
<div class="m-padded-tb-large m-container-small">
    <div class="ui container">
        <!-- 头部 文章总数-->
        <div class="ui top attached segment"> <!-- segment 边框-->
            <div class="ui two column grid middle aligned"> <!-- middle  垂直居中 aligned 对齐-->
                <div class="column">
                    <h3 class="ui teal header">分类</h3>
                </div>
                <div class="column right aligned">
                    共 <h2 class="ui orange header m-inline-block" th:text="${#arrays.length(types)}">14</h2>个
                </div>
            </div>
        </div>
        <div class="ui bottom attached segment m-padded-tb-large">
            <div class="ui labeled button m-margin-tb-tiny" th:each="type:${types}">
                <a href="#" th:href="@{/types/{id}(id=${type.id})}" class="ui basic button" th:classappend="${type.id==activeTypeId} ? 'teal'" th:text="${type.name}">思考与感悟</a>
                <div class="ui basic left pointing label" th:classappend="${type.id==activeTypeId} ? 'teal'" th:text="${#arrays.length(type.blogs)}">24</div>
            </div>
            <!--/*-->
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" class="ui basic button">开发者手册</a>
                <div class="ui basic left pointing label">24</div>
            </div>
            <!--*/-->
        </div>
        <!--文章列表-->
        <div class="ui teal top attached segment">
            <div class="ui padded vertical segment m-padded-tb-large m-mobile-lr-clear" th:each="blog : ${page.content}">
                <div class="ui middle aligned grid stackable mobile reversed">
                    <div class="eleven wide column">
                        <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" th:text="${blog.title}" class="m-black" target="_blank">Java Springboot实战</a></h3>
                        <p class="m-text" th:text="|${blog.description}......|">
                            内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！</p>
                        <div class="ui stackable grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://picsum.photos/id/1033/100/100" th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                        <div class="content"><a href="#" th:text="${blog.user.nickname}" class="header">苏俊廷</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime, 'yyyy-MM-dd')}">2020-03-23</span></div>
                                    <div class="item"><i class="eye icon"></i><span th:text="${blog.views}">125</span></div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal label m-padded-mini m-text-spaced" th:text="${blog.type.name}">认知升级-分类</a>
                            </div>
                        </div>
                    </div>
                    <!--首图-->
                    <div class="five wide column">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                            <img src="https://picsum.photos/id/1033/800/500" th:src="@{${blog.firstPicture}!=''?${blog.firstPicture}:'https://picsum.photos/id/1033/800/500'}" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <!--/*-->
            <div class="ui padded vertical segment m-padded-tb-large m-mobile-lr-clear">
                <div class="ui middle aligned grid stackable mobile reversed">
                    <div class="eleven wide column">
                        <h3 class="ui header">Java Springboot实战</h3>
                        <p class="m-text">
                            内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！</p>
                        <div class="ui stackable grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://picsum.photos/id/1033/100/100" alt=""
                                             class="ui avatar image">
                                        <div class="content"><a href="#" class="header">苏俊廷</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>2020-03-23</div>
                                    <div class="item"><i class="eye icon"></i>125</div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal label m-padded-mini m-text-spaced">JAVA</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="/blog" target="_blank">
                            <img src="https://picsum.photos/id/1033/800/500" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <div class="ui padded vertical segment m-padded-tb-large m-mobile-lr-clear">
                <div class="ui middle aligned grid stackable mobile reversed">
                    <div class="eleven wide column">
                        <h3 class="ui header">Java Springboot实战</h3>
                        <p class="m-text">
                            内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！</p>
                        <div class="ui stackable grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://picsum.photos/id/1033/100/100" alt=""
                                             class="ui avatar image">
                                        <div class="content"><a href="#" class="header">苏俊廷</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>2020-03-23</div>
                                    <div class="item"><i class="eye icon"></i>125</div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal label m-padded-mini m-text-spaced">JAVA</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="/blog" target="_blank">
                            <img src="https://picsum.photos/id/1033/800/500" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <div class="ui padded vertical segment m-padded-tb-large m-mobile-lr-clear">
                <div class="ui middle aligned grid stackable mobile reversed">
                    <div class="eleven wide column">
                        <h3 class="ui header">Java Springboot实战</h3>
                        <p class="m-text">
                            内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！</p>
                        <div class="ui stackable grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://picsum.photos/id/1033/100/100" alt=""
                                             class="ui avatar image">
                                        <div class="content"><a href="#" class="header">苏俊廷</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>2020-03-23</div>
                                    <div class="item"><i class="eye icon"></i>125</div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal label m-padded-mini m-text-spaced">JAVA</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="/blog" target="_blank">
                            <img src="https://picsum.photos/id/1033/800/500" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <div class="ui padded vertical segment m-padded-tb-large m-mobile-lr-clear">
                <div class="ui middle aligned grid stackable mobile reversed">
                    <div class="eleven wide column">
                        <h3 class="ui header">Java Springboot实战</h3>
                        <p class="m-text">
                            内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！</p>
                        <div class="ui stackable grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://picsum.photos/id/1033/100/100" alt=""
                                             class="ui avatar image">
                                        <div class="content"><a href="#" class="header">苏俊廷</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>2020-03-23</div>
                                    <div class="item"><i class="eye icon"></i>125</div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal label m-padded-mini m-text-spaced">JAVA</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="/blog" target="_blank">
                            <img src="https://picsum.photos/id/1033/800/500" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <div class="ui padded vertical segment m-padded-tb-large m-mobile-lr-clear">
                <div class="ui middle aligned grid stackable mobile reversed">
                    <div class="eleven wide column">
                        <h3 class="ui header">Java Springboot实战</h3>
                        <p class="m-text">
                            内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！内容，应该放摘要或者第一段，或者前多少字！！！</p>
                        <div class="ui stackable grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://picsum.photos/id/1033/100/100" alt=""
                                             class="ui avatar image">
                                        <div class="content"><a href="#" class="header">苏俊廷</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>2020-03-23</div>
                                    <div class="item"><i class="eye icon"></i>125</div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal label m-padded-mini m-text-spaced">JAVA</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="/blog" target="_blank">
                            <img src="https://picsum.photos/id/1033/800/500" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <!--*/-->
        </div>
        <!-- 底部翻页按钮-->
        <div class="ui bottom attached segment" th:if="${page.totalPages} > 1">
            <div class="ui middle aligned two columns grid">
                <div class="column">
                    <a href="#" th:unless="${page.first}" th:href="@{/types/{id}(page=${page.number}-1,id=${activeTypeId})}" class="ui mini teal basic button">上一页</a>
                </div>
                <div class="column right aligned">
                    <a href="#" th:unless="${page.last}" th:href="@{/types/{id}(page=${page.number}+1,id=${activeTypeId})}" class="ui mini teal basic button">下一页</a>
                </div>
            </div>
        </div>
    </div>
</div>

<!--  底部 footer  -->
<footer th:replace="_fragments::footer" class="ui inverted segment vertical m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided grid stackable">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wechat.png" class="ui rounded image" style="width: 125px;">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <div class="ui inverted link list">
                    <h4 class="ui inverted header m-opacity-mini">最新博客</h4>
                    <a href="#" class="item">用户故事（user story）</a>
                    <a href="#" class="item">用户故事（user story）</a>
                    <a href="#" class="item">用户故事（user story）</a>
                    <a href="#" class="item">用户故事（user story）</a>
                </div>
            </div>
            <div class="three wide column">
                <div class="ui inverted link list">
                    <h4 class="ui inverted header m-opacity-mini">联系我</h4>
                    <a href="#" class="item">Email：1358842247@qq.com</a>
                    <a href="#" class="item">QQ：1358842247</a>
                </div>
            </div>
            <div class="seven wide column">
                <div class="ui inverted link list m-opacity-mini">
                    <h4 class="ui inverted header ">博客介绍</h4>
                    <p>这是我的个人博客。。。。。。。。。。。。。。。。。。</p>
                </div>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-spaced m-opacity-tiny">Copyright @ 2020-2021 Lirenmi Designed by Lirenmi</p>
    </div>
</footer>

<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>
<script th:replace="_fragments::footerScript"></script>
</body>
</html>